<?@session_start();?>
 <?include "connect.php"; ?>
 <?php
$user = $_POST["user"];
$pass = $_POST["pass"];


$sqlcode="select *  from  useradd  where user='$user' and pass='$pass'";
$sql=mysql_query($sqlcode);

if($sql){
$row = mysql_fetch_array($sql);
}
if($row[0]!="" && $row[6]!="2"){
			$_SESSION[suc]="ok";
    echo "<meta http-equiv='refresh' content='0 ; url=adminuser.php'>";
}else{
	 $_SESSION[err]++;
	 echo "<meta http-equiv='refresh' content='0 ; url=index.php?er=0'>";
}
//If($database(
?>
